import 'dart:convert';

import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';
import 'package:whale/helper/utils/util.dart';
import '../index.dart';


class HotDataView extends GetView<WatchController> {
  const HotDataView({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      width: 1.sw,
      margin: EdgeInsets.only(top: 15.r),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Text(
            '全国公平指数监测热力图',
            style: TextStyle(
              color: ColorsUtil.title,
              fontSize: 16.sp,
              fontWeight: FontWeight.bold
            ),
          ),
          Container(
            margin: EdgeInsets.only(top: 15.r),
            padding: EdgeInsets.all(10.r),
            decoration: BoxDecoration(
              color: Colors.white,
              borderRadius: BorderRadius.circular(10.r),
            ),
            width: 1.sw,
            child: Image.asset('map_bg.png'.imgPathWatch,width: 1.sw,height: 260.r,fit: BoxFit.cover,),
            // child: WebViewWidget(
            //   controller: controller.state.webCtrl,
            // ) ,
          ),
        ],
      ),
    );
  }
}